package com.wuxf.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wuxf.entity.DicDataInfo;
import com.wuxf.mapper.custom.DicDataMapper;

@Service
@SuppressWarnings({"rawtypes","unchecked"})
public class DicDataService {
	@Autowired
	private DicDataMapper dicDataMapper;
	
	public List<DicDataInfo> findByEnumTypeId(String enumTypeId) {
		HashMap paraMap = new HashMap();
		paraMap.put("enumTypeId", enumTypeId);
		return dicDataMapper.findByMap(paraMap);
	}
	
	public List<DicDataInfo> findByEnumTypeId(String enumTypeId,String dicDataValue) {
		HashMap paraMap = new HashMap();
		paraMap.put("enumTypeId", enumTypeId);
		paraMap.put("dicDataValue", dicDataValue);
		return dicDataMapper.findByMap(paraMap);
	}
	
}
